package org.smart4j.framework.util;

import java.util.Collection;
import java.util.List;
import java.util.Map;

import org.springframework.util.CollectionUtils;

/**
 * description: 集合 Collection , Map 工具类
 * @version v1.0
 * @author w
 * @date 2018年10月21日下午12:52:23
 **/
public class CollectionUtil {
	
	public static Boolean isEmpty(Map<?,?> map){
		return CollectionUtils.isEmpty(map);
	}
	
	public static Boolean isNotEmpty(Map<?,?> map){
		return !CollectionUtils.isEmpty(map);
	}
	
	@Deprecated
	public static Boolean isEmpty(List<?> list){
		return CollectionUtils.isEmpty(list);
	}
	
	public static Boolean isNotEmpty(List<?> list){
		return !CollectionUtils.isEmpty(list);
	}
	
	public static Boolean isEmpty(Collection<?> list){
		return CollectionUtils.isEmpty(list);
	}
	
	public static Boolean isNotEmpty(Collection<?> list){
		return !CollectionUtils.isEmpty(list);
	}
}
